﻿using KayakMes.Common;
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace KayakMes.RBAC.Doamin
{
    [SugarTable("USER")]
    public class UserModel : BaseEntity
    {
        [SugarColumn(ColumnName = "USERCODES", IsNullable = true)]
        public string UserCodes { get; set; }

        [SugarColumn(ColumnName = "USERNAME", IsNullable = true)]
        public string UserName { get; set; }

        [SugarColumn(ColumnName = "PASSWORD", IsNullable = true)]
        public string Password { get; set; }

        [SugarColumn(ColumnName = "USERSHORTNAME", IsNullable = true)]
        public string UserShortName { get; set; }

        [SugarColumn(ColumnName = "PHONE", IsNullable = true)]
        public string Phone { get; set; }

        [SugarColumn(ColumnName = "USERTYPE", IsNullable = true)]
        public string UserType { get; set; } // 企业用户/个体用户

        [SugarColumn(ColumnName = "EMAIL", IsNullable = true)]
        public string Email { get; set; }
    }
}
